Fixed error handling on extractSchemas()