fixed nothrow bug

Fixed a bug where calling throw did not check the fatal flag.