[backend] Fix handling of hostlabel constraint