categories.split(',') error

Added protection for when there’s no categories specified.