fixing bug for xml views: e.g. check object.project.nil? before going to object.project.api_partial
fixing bug for xml views: e.g. check object.project.nil? before going to object.project.api_partial

aina1205/virtualliverf1,aina1205/virtualliverf1,aina1205/virtualliverf1,aina1205/virtualliverf1