agent: Don't poll when interval is zero, as documented.

Closes #359

Reviewed-by: Stef Walter <stefw@redhat.com>