Fixed a bug that prevented a public survey from being submitted after a logged in user's session timed out, fixes #116.