Fix #888

Fix #888 by returning immediately if `classMirror` is null.

***DO NOT MERGE WITHOUT REVIEW.*** I simply made the exception go away, but I don’t know enough about the inner workings of the IDE to decide if that actually fixes the problem. There are no more errors in the error log, but maybe that’s just because the `null` is detected elsewhere and the build is shut down properly?