Warning if string is passed as $attrib

Tracker:
http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_id=8103&tracker_item_id=32642

replace: https://github.com/joomla/joomla-cms/pull/2463