Fix MemoryHistory plugin to check whether the plugin
was able to create itself before returning the shared
pointer to it.
clang warning.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@219936 91177308-0d34-0410-b5e6-96231b3b80d8