LPS-48279 Search portlet custom date range search fails with java.lang.NullPointerException when using SOLR
LPS-48279 SF
LPS-48279 fix logic error (confirmed with @marcellustavares)