Fix nasty bug, endless loop when registering with a bogus or empty email address

The condition to keep looping in eperson.js - doRegister() is based on the errors array being not empty.  But there was no escape clause for when there was an error, so an error resulted in an endless loop

Fixes [Trello 188](https://trello.com/c/VEONBGhw)