Fix #295 Search & replace in admin panel

Also fixes a few other areas which use `ISNULL`. According to frost this will work fine across all systems.

http://dev.mybb.com/issues/1994#note-9

This likely requires #382 to land before it can be tested.