Add nil pointer check to MCGo shim