solving problem with filter

if the checkbox of spacial filter was checked but no polygon or bbox was
created, there was an error when you clicked on the filter button