Fixed NPE if user edited their mysql database to accept null values.