Fix OC-16: removing an LQI didn't update the segment view

    This happened due to an exception in the event handler before the
    segment table could be updated, caused by missing (null) provenance
    details.
Unittests for OC-16