Fixes: U4-3682 Can not create new documents (javascript error)