Fixes gcc-4.6 build error with -Werror flag, cause isError variable was not used.