Merge changes Ie98c9fec,I2de6bc77

* changes:
  Fix bug when there are no packages to OTA dexopt.
  Improve error reporting in OTA dexopt code.