Docs_endpoint sanity check fix - Corrected check to work with default parameter. Added check for an empty string.
Docs_endpoint sanity check fix - Corrected check to work with default parameter. Added check for an empty string.

MattCollins84/restly,MattCollins84/restly,Data-ptr/restly,Data-ptr/restly