Checked for a view when calling refreshView, because we crash otherwise.