PrintService - Replace fileinfo with try and catch, the PHP way

GD doesn't throw exceptions, so we supress the error and check the result. Larger than life, baby!