prevent application of jquery.shortened on invalid tags