frontend: don't set ended_on for canceled builds
The report_canceled_task_id method now expects info on whether the build was
running when it was canceled or not.
The cancel_task_id method has been modified to return true or false,
depending on whether the build was running when it was canceled.
Relates: #342