Fixed API Error when handling room subdivisions

Fixes the issue submited at https://github.com/FenixEdu/fenixedu.github.io/issues/22