reflection: getPrimaryProperty() throws exception if no primary property defined