Fixed the handling of empty room id in the rooms API