Add nil return to #status_code conditional

Explicitly return nil if neither `self.task` or `self.operation.response` are set.