Bugfixes for long polling task states.