Fix uncaught exception warnings of SetZoomLevel

Fix #1395