[Lib lint] Fixes a crash when podspec cannot be loaded

Fixes #2147