Fixes the undefined offset notice when no project is assigned to a task