REST Config check params before clearing dataStoreCache (GEOS-6575)

https://jira.codehaus.org/browse/GEOS-6575