Fix namespace issue when registering wp errors