Move BitmapHandler::canRotate() call out of Setup.php

* This was wasting 5ms on every request hit on test wiki

Change-Id: Ie7a5aa27593ab8e0d52fb00218345d1789da61a1
Merge "Move BitmapHandler::canRotate() call out of Setup.php"