Update jquery.trap.min.js

add checks to prevent infinite loop (to minified file also)