[#3237] UpdatableRecord.store() executes INSERT instead of UPDATE when nullable primary keys are NULL