Check for null layers (for postcompose hitdetection)