Bug 903944 - workaround gecko crash in bug 908432

fix two places where we were not checking preview size correctly
Merge pull request #11705 from davidflanagan/bug903944-2

Bug 903944 - workaround gecko crash in bug 908432 r=therold