[repo] ensure we don't restart a task while the repo is shutting down (closes #1942736)
we need a safety belt in cw itself again looping task which use 'try / except'
or doesn't need to access the db (which will trigger ShuttingDown exception)
[testlib] make self.view() return raw output if no validator is used
This will make it possible to parse and test view's output even if no
validator is associated to the view's content type.