Make restful controller respect if a template is already set