Linearinterpolate coercion failed

So after watching the Toon shader tutorial that Epic posted on youtube, I wanted to create the outline effect myself. However after attempting to mask the black parts away to leave the lines, it gave me this error and I have no idea how to solve it? The link to the video tutorial and timestamp is here, aswell as a screenshot of my problem. Thank You!

Link: Post Processing in UE4: Cel-Shading | Live Training | Unreal Engine Livestream - YouTube

TimeStamp: 41:24

Looks like the scene depth node for the center pixel doesn’t have a red channel mask on all of its outputs. So if that results in the alpha of the lerp being a vector 4 it wouldnt work.

Thank you very much!