CRM-13852 - avoid multiple calls to Array::value

----------------------------------------
* CRM-13852: activity filter user preference: flush cache before setting
  http://issues.civicrm.org/jira/browse/CRM-13852