StateSynchronization server: better handling of non-conform values in the db when searching