fix: handle node api-api error gracefully (#9255)
fix: handle node api-api error gracefully (#9255)

I keep getting weird errors and it was because my gatsby-node.js had issues, but the build was continuing assuming there was a `result`
0x80/gatsby,ChristopherBiscardi/gatsby,gatsbyjs/gatsby,mingaldrichgan/gatsby,mingaldrichgan/gatsby,0x80/gatsby,ChristopherBiscardi/gatsby,gatsbyjs/gatsby,ChristopherBiscardi/gatsby,gatsbyjs/gatsby,gatsbyjs/gatsby,mingaldrichgan/gatsby,0x80/gatsby,ChristopherBiscardi/gatsby,gatsbyjs/gatsby,gatsbyjs/gatsby