Fix for to_solr crash

Using the https://github.com/Spokeo/date_time_precision gem causes this method to go haywire. This seems to be a simple fix.