fix possible NPE for pojo property get