fix(screenshot): account for screenshot === undefined
#19627
Merged
screenshot === undefined
#19627