Fixed error if categories is null

If an article got no categories (==null), makeblog shouldn't raise an error. Fixed this.