Bug 1011688 - Update Task detail page

`.exists()` is better for this than `.count()` -- it might not matter in this case, but in general `.exists()` is faster.