Fixed lookup errors for invoice and ticket searches when no date range is entered.