How to use Contact name if nickname is not present in bulk mail?
You will need to turn on CIVICRM_MAIL_SMARTY in civicrm.settings.php to use smarty templating for conditional and more complex logic. 



Cheers

Pradeep