Add type check for admin_notices(). Fixes #32