Fixed bug with `smootScroll` directive that was causing a js error when no element to scroll to was found