Fixed NPE in BeanSheetWriter