Checks for when currentRoute is null (can occur on first load)

In my application, the currentRoute is commonly null at first load (possibly because of how my routes are set up). This breaks the animation manager. I only changed the original file, not the minified - sorry ;-)