Add check to prevent errors when using vimpager.