WaitForActivity honours timeout even if no activities exist.

The timeout is infinite unless some activities exist.