[Fix #844] Detect absense of var info

We weren't checking whether the info middleware response actually contained
any information at all.

This also fixes #845.