WebApplication redirect fix

There was an issue with the redirect if the page parameter stored in the session was an empty string, this is now fixed. The question remains how that string could turn up empty though (might have been a transient issue for admins when we were patching the security holes). I will take another look at the DB to see if this might still be an issue. Preliminary tests show things working well though.