Make getProperty retrieve properties behind getters

Mongoose documents and their properties are behind getters. This
change makes it possible to use getProperty with them.