29266 uncaught exception in user profile

Fix for: http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=29266