This Fixes some errors that occur when tipElement is set to null.
Errors occur when using the dropdown directive with a dynamically changing object as the source.