Add precondition to UIProgressMonitorImpl.beginTask()