Bail out a little faster when object write affinity is off

This function was calling a couple functions prior to checking for
early bailout; if it did bail out, the results of those function calls
were unused. Bail out earlier to avoid wasted work.

Change-Id: Ia023549a45355b44ebfb41212565c42f993415a9
Merge "Bail out a little faster when object write affinity is off"