[#3650] NullPointerException on TableRecord.insert() when primary key information is not present