Fix NPE in incomplete case statement (fixes #373)

This fixes the mentioned NPE.

@duclosm thanks for reporting, you can find the fixed jar in my Dropbox: https://www.dropbox.com/sh/kzcmavr2cmqqdqw/j8wjp8SdNH