Fixing NPE if backlog is configured to be zero.

Fixes #865