grunt:model error handling fix