java: Fix superclass init

Make sure ->super is initialized to nullptr if a class does not have a
superclass.

Spotted by Valgrind.

Signed-off-by: Pekka Enberg <penberg@kernel.org>