fix checkIsDraft checking for versioned records