Cameron avoids risk of ketchup photo op disaster