MDL-47919 tool_monitor: only use set_label() on valid object
MDL-47758 tool_monitor: prevent DB error when revisiting a delete URL
MDL-47758 tool_monitor: altered behat tests so they pass