Fix null pointer exception in settings activity on update