CRM-14487 - Fixed PHP notices.

----------------------------------------
* CRM-14487:
  https://issues.civicrm.org/jira/browse/CRM-14487