REL-2057: Detect invalid ROIs before insertion and don't allow them to be inserted.