Security blunder over Pakistan president's visit to Britain