HOPKINS: Fix check on index in LinesManager. CID 1004010