Don't call select on a fragment if it's null

Bug: 63954
Change-Id: Ib0bb4c8548bd35c71dd1677af8548c2d66e71402
Merge "Don't call select on a fragment if it's null"