Fix potential NPE in BeanMapper