Missing required second argument in array_diff

The $whiteListAttributes variable is missing on the comparison function. 
This pr corrects previous https://github.com/joomla/joomla-cms/pull/2575
Merge pull request #2577 from mariopro/patch-12

Missing required second argument in array_diff