Tidied up some WP_DEBUG warnings. Fixes #43