Fixed issue where onDismiss() did not get called if Snackbar is swiped.