cleanup function and remove unused param
CRM-13209, fixes to remove required if file exists

----------------------------------------
* CRM-13209: Mandatory custom fields, on edit, always require a new upload (regression)
  http://issues.civicrm.org/jira/browse/CRM-13209
CRM-13209, fixes to remove required if file exists

----------------------------------------
* CRM-13209: Mandatory custom fields, on edit, always require a new upload (regression)
  http://issues.civicrm.org/jira/browse/CRM-13209
template cleanup
Merge pull request #1492 from kurund/CRM-13209

CRM-13209, remove required error if file is already uploaded