[MAT-387] (Unsafe) hacks to avoid crashing in check_expressions