Guarding against reading null values out of the database.