Prevent a possibility to request doc info from fabric:open_doc/3
Change code to avoid modification of #acc{}

Code refactored to avoid modification of #acc{} that
could led to a crash during the upgrades

Doc info's unit tests rewritten to adopt to the changes