In rare occasions a user has access to a layer A and can load it in QGIS but has no access rights to a layer B which is related to A.
In that case initializing fails because B cannot be loaded into the project.
Proposed behaviour:
- do not show an error (maybe an info is more adequate)
- omit the widget accessing B in A's mask