Handled NPE inside Configuration.get and R.get methods.