[FIX] Catch ValueError on ref migrations

Merged Gabriel Davini requested to merge 8.0-complex_matrix into 8.0-stage

Merge request reports