Fix bug where a blank category would mess up everything, don't know why you would try and add a blank category but hey its fixed

Signed-off-by: Josh Fradley <josh.fradley@gmail.com>