Fixed magellan destination undefined error

Problem:
Given a page that has magellan enabled
And the page has no magellan destinations defined
Then javascript throws an undefined error on the scroll event

Fix:
Added a check for destination value before the scroll event is handled