drm/i915: properly check for pipe count