Created by: mrnugget
This fixes the one nil panic we ran in on k8s.sgdev.org:
And it also changes the rest of the code to be nil-safe and fixes the log statement.