Fixed check "transitionend" event

After auto hiding a notification, message isn't deleted. This pull request fixes it.