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