[1033] Lost a py:if statement during refactor. Hide Preview button on non-WMS datasets.