Additional fix for '404's in thumbnails for InternetExplorer.
Fix the order in which template is chosen. Fixes #822.