Close dialog on "esc" and apply filter on "enter". applying the filter
also closes the dialog.
+ added nullcheck for aggregate view code to prevent errors when no
feature has been selected in the aggregate view