avoid exception on trying to detect injection inside another injection (WI-9523)