Added check for NULL pointer in serviceClearRouterOptions.