Fix for a bug on occasional first load redirect

Sometimes when a app starts up the sesBaseURL isn't set in the context yet when a redirect happens.
This fix will fall back to the setting (which has been set) in those cases.
I have seen this issue with applications that have the security interceptor and the first hit
is to a secured page.
Merge pull request #129 from gratzc/patch-7

Fix for a bug on occasional first load redirect