check for errors and return a 1x1 transparent PNG if there is instead of returning 404