[2.5] Backport #3454 against 2.5.x branche

See here for the orginal Tracker:
http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=33619&start=0
and here for the based pr aginast staging by @demis-palma:
https://github.com/joomla/joomla-cms/pull/3454
Merge pull request #3460 from zero-24/patch-14

[#33619] [2.5.x] Backport #3454 against 2.5.x branche