fix spinning on NULL protocol name

Signed-off-by: Andy Green <andy.green@linaro.org>