Update NumberPickerFragment.java

do more check, whether a NullPointerException would be thrown.