Widget component GetRenderTarget() coming back null

When connected to begin play, the message ‘Not Valid’ was displayed, but when I added a little delay, it worked normally after adding the above.