[GEOS-6628] NullPointerException when setting empty ParameterFilter (Backport on 2.6.x)

This pull request contains the backport on 2.6.x branch of the fix for JIRA: http://jira.codehaus.org/browse/GEOS-6628.