Fix bug copying from DB and getting a Null value in a Real DB value => setting to NULL - #504