Make sure the exception is a CommandException before casting it to one.

Bug: 18607098
Change-Id: I29183d50d4a4b6b625baf1a0302ebdfb1e4d9deb
1 file changed