count changes to queue item as modifications

All three branches result in a change to a database-sourced object so
count all three as a modification.  This also addresses the problem that
when modify_index failed indefinitely then memory would grow
indefinitely.