Fixed #5826 (Change error message for 'throw in destructor' check)