fixes for print format and workflow attachment with docs. fixes frappe/erpnext#1684 and frappe/erpnext#1681
bugfix for add_if_empty in mapper.py fixes frappe/erpnext#1683
Merge pull request #560 from rmehta/develop

Fixes