fixing empty style attrs failing

the old code would fail on finding an empty string in `el.style` even though i think that should pass? so this should solve it?

let me know. stumbled on this while trying to use `afterTransition()`