Image Annotation Admin Error

I was going through and deleting some of my test annotations through the admin site. Now I get an error message on some of the pages when browsing through the image annotations.

exception 'Exception' with message 'An item has not been set to be displayed on this theme page!  Please see Omeka documentation for details.' in /home/http/omeka/application/helpers/ItemFunctions.php:74
Stack trace:
#0 /home/http/omeka/application/helpers/LinkFunctions.php(183): get_current_item()
#1 /home/http/omeka/plugins/ImageAnnotation/views/admin/moderate/browse.php(31): link_to_item(NULL, Array, 'show', NULL)
#2 /home/http/omeka/application/libraries/Omeka/View.php(114): include('/home/http/...')
#3 /home/http/omeka/application/libraries/Zend/View/Abstract.php(888): Omeka_View->_run('/home/http/...')
#4 /home/http/omeka/application/libraries/Zend/Controller/Action/Helper/ViewRenderer.php(897): Zend_View_Abstract->render('moderate/browse...')
#5 /home/http/omeka/application/libraries/Zend/Controller/Action/Helper/ViewRenderer.php(918): Zend_Controller_Action_Helper_ViewRenderer->renderScript('moderate/browse...', NULL)
#6 /home/http/omeka/application/libraries/Zend/Controller/Action/Helper/ViewRenderer.php(957): Zend_Controller_Action_Helper_ViewRenderer->render()
#7 /home/http/omeka/application/libraries/Zend/Controller/Action/HelperBroker.php(277): Zend_Controller_Action_Helper_ViewRenderer->postDispatch()
#8 /home/http/omeka/application/libraries/Zend/Controller/Action.php(523): Zend_Controller_Action_HelperBroker->notifyPostDispatch()
#9 /home/http/omeka/application/libraries/Zend/Controller/Dispatcher/Standard.php(295): Zend_Controller_Action->dispatch('browseAction')
#10 /home/http/omeka/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#11 /home/http/omeka/application/libraries/Zend/Application/Bootstrap/Bootstrap.php(97): Zend_Controller_Front->dispatch()
#12 /home/http/omeka/application/libraries/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()
#13 /home/http/omeka/application/libraries/Omeka/Core.php(166): Zend_Application->run()
#14 /home/http/omeka/admin/index.php(45): Omeka_Core->run()
#15 {main}

If I am just going through the pages of annotations in their default order (which looks like annotation ID) then I get the error message above on some of the pages. However, if I sort the annotations by Item ID, I am able to click through all pages without any problem.

Hmm, I'm not quite sure what's going on here.

It's probably that one or more annotations is, for some reason, attached to an item or file that doesn't exist anymore. Sorting by item ID may be "hiding" the problematic annotations on a later page.

There are only 4 pages of image annotations. If I view it in the default order I can view pages 1 and 4, but not 2 and 3. Page one has 10 items, starting with one and ending with 12. If I reverse the order by clicking on ID (for annotation) I can view pages 1,3, and 4. Page one starts at 60 and ends with 51, page 3 goes 30 through 10, page 4 runs 9-1. If I sort it by Item ID I can go through each of the 4 pages. All of the items and annotations seem to be working.