[ ] Affected Issues have been mentioned in the Closing issues section
[ ] Documentation has been written/updated
[ ] PR title is ready for changelog and subsystem label(s) applied
When cancelling a build where the build resource doesn't exist, a nil pointer reference error is encountered. This checks the build exists before trying to access the resources.
Checklist
When cancelling a build where the build resource doesn't exist, a nil pointer reference error is encountered. This checks the build exists before trying to access the resources.