Add Py_DECREF ref in get_properties upon failure