Fix DocumentationBuilder w/ resource files having .robot extension.
Fix DocumentationBuilder w/ resource files having .robot extension.

Fixes #4519.

robotframework/robotframework,robotframework/robotframework,robotframework/robotframework