make sure preview prop is instanceof OC_Image before using it in showPreview
Merge pull request #11200 from owncloud/preview_better_errorhandling

make sure preview prop is instanceof OC_Image before using it in showPreview