Remove unnecessary null check.

Non-main methods can't be empty in MiniJava.