Add nullref check for disappearing errors