Fix $app connection in Register Method

Register method failed to get a copy of the Application for all uses.
Update joomla.php

Fixes tracker issue: http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=32775&start=0
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
 # [#32812] *Wrong JText causes double string use
(Fix #2593)
 # [#32815] Issues with the cache permissions  Thanks Tobias Zulauf
(Fix #2597)
 # [#32810] *mod_feed does not render hyperlinks in RSS 2.0 feeds
containing GUIDs + others  Thanks Lewis Rosenthal
(Fix #2600)
 # [#32772] A Header is missing for the beez3 login form.  Thanks Tobias
Zulauf
(Fix #2568)
Remove extra space to fix Jenkins
 # [#32700] Cleanup beez3 error.php
 # [#32675] Missing check in JApplicationSite causes a fatal error
Thanks Michael Babker
(Fix #2584)
 $ Updating TinyMCE German de.js.
Merge pull request #2608 from wilsonge/patch-6

Remove extra space to fix Jenkins Thanks
 # [#32766] Formfield `ChromeStyle` produces fatal error if used outside
of com_modules.  Thanks Thomas Hunziker
(Fix #2565)
 # [#32786] Stop canonical message in home page using featured view of
com_content  Thanks Bruno Batista
(Fix #2581)
Fix a failing unit test
Merge pull request #2596 from elkuku/ut-1

Fix a failing unit test [#32813]
Removing duplicated part from earlier commit
Missing language string
 [#32846] Add in batch language option for all languages  Thanks Thomas
Hunziker
(Fix #2624)
 # [#32844] *Regression: Batch Copy modules does not work if a position
is not chosen  Thanks Thomas Hunziker
(Fix #2625)