Only send presence if requested.

Fixes tests.