Fixed bug in offer handling.

We weren't correctly handling the return value of buildTask() for
determining whether the offer was sufficient.

@andykram @florianleibert