Randomly findAppIcon stopped working properly so I fixed it (I hope).
Marionette is_displayed() now working so improved findAppIcon().
Final changes for 26763
A note if we can't add any more apps to the dock.
Changes to support 26764
Created moveAppFromDock().