shell: check type of window/sidebar object in ev_sidebar_thumbnails_is_two_columns function
See discussion on #1409 (closed), this is my attempt to fix it. Please review carefully as I am not proficient in C programming nor in Evince design.
Fix #1409 (closed)