FAutomationTestBase::TestValid

Logs an error if the given shared pointer is not valid.