Preventing rider dismount when sleeping

I’ve been trying to prevent the rider of a mount to be dismounted when unconscious. It seems there is logic somewhere which forces the dismount when the rider is sleeping. I’ve tried applying Buff_IsBeingCarried_AllowUnconscious and Buff_IsBeingCarried_DontDismountRider without success.

I’ve also looked at the mount events Set Rider and Clear Rider, and can’t seem to determine how to prevent the dismount. I’ve looked at the pawn, and am unsure how to get the mount information from that class.

Any ideas?