Fixed MDM not logging in when no session is selected and .dmrc doesn't exist