solve undefined index cat in index.php

Reported-by: tbleiker (https://github.com/pommi/CGP/issues/25)