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

----------------------------------------
* CRM-14683: Update Grant causes DB Error: constraint violation
  https://issues.civicrm.org/jira/browse/CRM-14683
Merge pull request #3255 from Edzelopez/CRM-14683

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