Update API.php

Removed echo statement in getCustomReport() that was preventing the reports output formats to be valid.