catch case where .session_key was None, leading to an invalid /detectip/None url