Fix error transforming an empty switch (#346)

* Fix error transforming an empty switch

The parser would crash on that line for `switch(1) {}`
because NoneType is not iterable.

Fixes #345

* Add a test of empty switch statements

* Address review comments
2 files changed