Adding redirect when session.sited is not defined
Fix for issue #1361