Handle ACTION_CANCEL in swipe dismiss code. Fixes issue 465.

Change-Id: I8eab6091977f3bc68eb51072c75bbae8e96f3e6b