LPS-44540 Using correct variable name

When trying to call an undefined variable, an exception was thrown and prevented the
registration of the loading mask into the iframe object. When it tries to retrieve
it the second time, it fails because there is no such mask in the iframe object.