Add check for if partition being lokied is blank

Change-Id: I1670cc0024d0cab22da97a35df8758584ccc2ea3