Fix NPE when cancelling the shortcut picker.

Change-Id: I7a955d6f06e9b03203e8a2c21d5a0644808b3598