Fix server crashing when room is invalid