Illegal string offset '_elem' in action.php on line 231 (or 232) - CORRECTION

sorry, simple PHP break does not do the full job, we need to check all `$ref`, and that for the whole foreach body