Fixed bug in response format of checkSession action.