Fix for error when a user visits the finish task url without being logged in