Fixed an index-out-of-range panic from channelCache

Happens when the cache has to query the view but gets zero results
from it. (Reported via email from Andrew Tokarev)