Throw an error in #addView() if "view" field is not defined