Smarter Primo error handling.
- Resolves VUFIND-1016.
- Includes unit test.