Avoid undefined index error when checking cookie in get_session. Fixes #4