Fix jshint complaint in DocumentController.