Merge "Avoid NPE when getting last shutdown reason." into oc-dev
am: 0cf6b908a8

Change-Id: Ib31807bddc953d2bba068359c9468257d1b92a9f