Fixing null references for layout clip processing.