Fix failing manifest updates

Backport https://github.com/joomla/joomla-cms/pull/3471 to 2.5.x
Tracker:
http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=33626&start=0