Fixed bug to redirect to homepage for blank error message

Signed-off-by: Nathanael Burt <nathanael.burt@gmail.com>