diff --git a/inobounce.js b/inobounce.js
index <HASH>..<HASH> 100644
--- a/inobounce.js
+++ b/inobounce.js
@@ -16,6 +16,12 @@
 		while (el !== document.body) {
 			// Get some style properties
 			var style = window.getComputedStyle(el);
+
+			if (!style) {
+				// If we've encountered an element we can't compute the style for, get out
+				break;
+			}
+
 			var scrolling = style.getPropertyValue('-webkit-overflow-scrolling');
 			var overflowY = style.getPropertyValue('overflow-y');
 			var height = parseInt(style.getPropertyValue('height'), 10);
Make sure the computed style is truthy before dereferencing it, fixes #<I>