Fix #30902

http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=30902

Patch is already recommended in the docs here: http://docs.joomla.org/Fatal-error-in-registration