Friedrich Wilhelm Gmelin, ”Flucht nach Ägypten”