Prevent NPE reading component instance properties