MDL-47758 tool_monitor: prevent DB error when revisiting a delete URL