Issue 21402: Handle case where newRecord may be called by something other than a component