Remove references to onError

When completing Task an exception is thrown ‘[Task setOnError:]:
unrecognized selector sent to instance’. onError is not initialized or
used within the Task, so the two references have be removed.