Nicer error message if schedule slots or rooms are not defined

Can't create schedule without the underlying data, but no need to
crash just because of that...