recovery: Compatibility with upstream minui change

Re-applied this commit from CM11