Attribute getter that strips prototype properties