ENH allow empty grid in ParameterGrid

Fixes #2048.