Fix for issue #21: Failure to unregister animation tick when directive was removed from page