Not completely sure about this exception. The same check is done few dozen lines below which is too late.