core: Bugfix (band-aid?) for PD/Goldeneye crashes when reloading.

Thanks xperia64 for tracking this down :D

Full discussion here:
http://www.paulscode.com/forum/index.php?topic=1199.msg11751#msg11751

Will submit a pull request upstream to see if this is an acceptable
fix.