Check frontend value for NULL before comparing it

I was working on RetroPlayer and noticed several cores crashing when NULL was returned in various instances. In this case, it doesn't look like libretro.h prohibits this, so data from the frontend should be checked.