ignore when the source code contains errors

This is nature since we only need to get the navigation and no
diagnostics is needed(important when the configuration is hard by using
complicated build tools)