There is a merge conflict with this line, and it appears that it needs to be `if (typeof(task) !== 'undefined' && task !== "") {` per https://github.com/joomla/joomla-cms/commit/09ad7b6fcf3cf5e6d165883d7e93d7f3e96f515d