Fix for an error occuring when accessing the Register page for the first time
Fix for an error occurring when attempting to register a new user from the Registration page.
Fixes a mail-related bug when attempting to use a message variable before it is defined. This fix checks for empty first, then uses (or sets) appropriately