Fixed fetching of a property defined but not initialized in C extension

This PR fixed #1337