Fix handling of properties declared as "id" that permit NULL in DB (#46)