Fixed a crash due to uninitialized default handler