Don't trigger when no href included on link

When using the dirtyforms plugin with Bootstrap's datepicker control I noticed that the next and previous buttons to switch between months causes the modal to display. It makes sense to skip links where there is no href as the user will not be leaving the page on clicking them.