Check for undefined or null on contentDocument

Set default parameter on contentDocument
Merge pull request #37 from Rise-Vision/fix/fix-contentDocument-check

Check for undefined or null on contentDocument