make scan helper deal with empty response, refs #142