Follow up to f496919763e0d6e85efc997888e9c5b66b10f707 add failsafe for
while loops on dom

* Handles miscofigured or broken player layouts without locking up
player.