No caption div if no title/caption. Fixes #28.

Added check for title and caption when displaying caption div. Fixes
#28.