Core: Fix case where a panic alert wouldn't be shown in MemoryUtil.cpp

On Linux failed mmap calls return `MAP_FAILED` and not `nullptr`. 

This also fixes any checks against nullptr for pointer variables that call this function on Linux.