activitypub: fix error condition match