Handle case where item is not in any exhibition

The code now handles the case where the item is not in an exhibition.
Before the fix, would get an error and the xml would not display.
NOTE that the debug code is still there, and still needs to be
removed.