Fix obligatory getter

Final minor fixes to getter & setter, new "MissingAttr" exception.
In particular fixed bug where obligatory getter would not throw error when attribute or entity was missing.