Patch for issue #29142.

[issue #29142](http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=29142).