reveal: fix locked staying true if animation is none

I noticed that my modals didn't close/open right if I didn't have an animation defined.

I fixed that, and made detecting animations much more DRY because I didn't want to add more regexp craziness.