Expand the result of calc.gmf.ground_motion_fields only if a nontrivial filtering function is passed

This allows a simplification on the engine side. It can enter only with the companion pull request https://github.com/gem/oq-engine/pull/1376