Two minor fixes in keyphrases table construction

1. Ignore empty keyphrases (they may occur occasionally and they lead to errors)
2. Case all keyphrases to uppercase by default (that's what also happens to texts)