Convert empty strings to null

To prevent wrong validation errors in the forms