Remove unreachable branch and fix segfault

Thanks to http://clang-analyzer.llvm.org/