Replace repeated null checks with an assert. NFC.

Without a vector to hold the created ops, these
functions don't have any use.