[refinement] BUGFIX: check if list of refinement criteria was allocated
Merge commit 'e027e8a' into upgrade_refinement_criteria