fix details view

- allow filter to be null in ckan datastoreSearchSql method