Issues originating due to sql_mode='STRICT_ALL_TABLES'

Fixes frappe/frappe-bench#18