Bug 903944 - workaround gecko crash in bug 908432

fix two places where we were not checking preview size correctly