We had the same problem on a Mac running 10.5.8 with Safari version 5.0.2 which has webkit 533.18.1.
The app runs into an endless loop when switching from one page to another. Adding the extra check solved the problem for all our devices.