[#33745] Make enqueueMessage more DRY

http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=33745&start=0

The same code already exists in the getMessageQueue() function so we should use that