Fix crash in no-spec opts case.