i think it would be better to ignore invalid date and not use current date. something like

    if ($fromDate) { $solrFromDate = $fromDate->format(...); }