Improved error handling for unknown species