Preventing NullPointerException when cancelling a shortcut addition

Bug: 21024018
Change-Id: Iac09d9e4f1411aa9fe1ec89fbfe749b009c7d457
(cherry picked from commit f044bb1edd8670fbc2cf9eeb1a51c31b91f0889c)
1 file changed