Simplify code at a few places

Remove some duplicate checks,
and unnecessary errors.
> We should just skip the for loop here if there are no targets.

Did that in https://github.com/hypothesis/annotator/commit/cdc84fbf6d58f92bffc1b57ddeb79db0b6a0b647.