[ticket/12597] Fix test file

Fix bug of test_no_task that expected a message where none was supposed
to exist.

PHPBB3-12597