Simplified hiding of filter box when filtering is not available
Expanded check for ineditable layers

#227