Fix warnings when no post types exist
Merge pull request #6 from co-b/master

Fix warnings when no post types exist