Fix NPE when unboxing primitive wrappers

Silly Java.