CRM-14683 Fixed constraint violation when batch update for grant is perf...

...ormed

----------------------------------------
* CRM-14683: Update Grant causes DB Error: constraint violation
  https://issues.civicrm.org/jira/browse/CRM-14683