Fix oa_core_get_spaces_by_parent not returning all top-level spaces