Adding error handling for missing genres