Defensive programming for DBNull's from database.