Handle nil values better.

In several cases virtualserver wasn't protecting against nil values
properly and then failed, assuming it could .each a nil.
Merge pull request #129 from apenney/tmp

Handle nil values better.