the purpose of this check is to verify if this document is translateable. any proxy created should set the current document locale. it seems that for some reason the proxy for the document is defined without setting this locale.