Check ERROR state from driver in _do_sync_power_state

Power driver can returns ERROR state. This error is not checked
in manager._do_sync_power_state.

Partial-Bug: #1358816
Change-Id: I0672da6159252a1a2901f31ae11e2b29bc6147ef
Merge "Check ERROR state from driver in _do_sync_power_state"