Fixed search so it doesn't crash if no index is present, it just returns an empty result list. User can now remove var groups.
Fixes to vargroup removal. Study errors can not be added or removed without the required permissions from UI.
Removed edit study error permission from reader, it should be basic user permission.