fixing issue with scala int autoboxing from java when null Integer exists