fix createContents when previous or next category is null
Merge pull request #92 from Ekvi/contents

fix createContents when previous or next category is null