MRG allow empty grid in ParameterGrid

Fixes #2048.