Fix if the openScope doesn´t exist anymore

If the dropdown is not available in the DOM anymore but with the $document.bind the click event will be called it creates an error as you can´t $apply on a "null" element. This resolves the problem.