emailcloak not working when linking an image and using an email subject

See http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=33898

(and the original Tracker http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=31677 and patch https://github.com/joomla/joomla-cms/pull/3920 )