Fix handling of Missing Extensions exception. Fixes #1647