Bug 4540: Yang parser exceptions should follow consistent path