NullPointerException in DateToSqlDateConverter and TableQuery

DateToSqlConverter: Conversion fails if value is `null`. Trivial fix for the issue.
TableQuery: attempts to close() tables even if the variable is null