indexer.php: disable the GIF output only with debug parameter and allowdebug

Before this fix the debug parameter always prevent the GIF from being
sent even though no actual debug information was returned unless the
allowdebug configuration option was set. Now the GIF is only disabled if
debugging is actually allowed.