Fix issue 8795: segfault on mixin("switch") and mixin("interface;")

This is my first non-trivial dmd pull, so I've no idea if this is the correct fix for the problem. Please review and let me know if I'm completely off. :)