sr: Fix "nesting bug"

See https://github.com/CyanogenMod/android_bootable_recovery/commit/8e40f42

Change-Id: I8d3f4588e08099d8ce102a73459ab5663cc8dcd8