Answer
This usually only happens if the session to logon times out with no logon. If this happened, it causes the LogonWindowFrame global to be uninitialised.
We now use a hard-coded logon frame name which will prevent this from happening in the future.
See Also:
Keywords:help logon