FIX Fixes silverstripe/silverstripe-cms#947 GridField sorting.

- Ensures magnifying icon only shows when required.
- Related to: silverstripe/silverstripe-cms#810 (@chillu comment).
- Also fixes #1492.