check to make sure redirect-to-login-page always generates html

Signed-off-by: Mario Domenech Goulart <mario.goulart@gmail.com>