honestbleeps/Reddit-Enhancement-Suite — pull request #1049 by bronzle (2014-05-13 19:03:32+00:00)
Title: elementInViewport(): return false if element is falsey

This is somewhat related to PR #1048 -- you can dismiss this if you'd like as my other fix for the scrolling sidebar won't run into this issue any more.

None the less, I figured it wouldn't hurt to short circuit the RESUtils.elementInViewport function to return false if obj is falsey (e.g. doesn't exist)