These are used in ntcore and cscore. Add inline null-checking versions to wpi/memory.h and use them throughout.