Fix exception on empty constraint group