add a check for unsafe attributes that have no need in larch but can cause crashes
more fixes for scanviewer