Updated handling of chosen category and errortext if no categories could be retrieved.