Fix serverStatusID to handle undefined variables properly