#108106Undefined array access in EditDocumentController
Description
When a user has read-only permissions on a table (e.g. pages), the EditDocumentController throws an undefinied array access warning, if the user tries to edit a record of the table. This problem was introduced with #107794, where the setIsSavedRecord() function call has been moved into the main function.