Fixed bug in View that would cause xml and json views to output HTML