scenario.py: Fix has_proxy test

This is necessary to avoid a "KeyError: '0'" on Ubuntu 12.04 at least.