Test for #1375: NPE in code generation when referencing faulty method

There's no NPE, there is a javac error, but that's normal for now until we address
the more general issue later