Fix: Error in user registration with profile plugin enabled

Tracker:
http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=33720&start=0