Update categories.nim

Fixed the tester from crashing when the babel package file is invalid.