Queen Elizabeth II had an unwelcome visitor at Buckingham Palace as she slept on Wednesday morning.