Graduated to github: https://github.com/devinrhode2/StrictjQuery.js
But for the simple version (quite possibly better): (wait no its broke use the one on GH)
Warns when you have an empty jQuery selection, unless you do $('foo', failsafe);
$.badSelectorAction = function badSelectorActionFn( selector, context ) {