fix unwanted stack dump output when accessing a registered C++-object. #79