Add checks for resource manager
This branch updates qtModelEntityAttributeView and qtAssociationWidget to check that a resource manager exists before using it. There were a handful of places where the check was overlooked, which can crash the qtAttributePreview executable (because it doesn't use ResourceManager).
backport: release
Edited by John Tourtellott