[java-sql] Avoid null reference errors when decoding Date