Handle an error return in get_object_name
* src/oomhelp.cpp (get_object_name): Handle return of query interface.
Not sure if this fixes anything but it is better to
always check for errors and don't depend on microsoft
not changing the return value on error.