Fix a bug when loading tiles from Flask in stack viewer

This bug was caused by 89b45fddb8de38d67589e78d76573b8202256571.
Clean some trailing whitespace
Merge branch 'fix-stack'

* fix-stack:
  Clean some trailing whitespace
  Fix a bug when loading tiles from Flask in stack viewer