Update forms.py

Fixed Internal Server Error when using categories 'editor' or 'keyword' in extended search