Fixed raven nil check in error wrap