ID 348277 - Nuke crashes when node named 'window' is queried with 'nuke.hasError()'

Follow

Problem summary
When using the Python command ​node.hasError() on a node named 'window', Nuke will crash to desktop.

This appears to be the only name which appears to cause the crash.

Customer reported version
nuke.10.5v7

Customer reported platform
centos7

Steps to reproduce

1) Create any node

2) Rename the node 'window' and keep it selected

3) Paste the following into the Script Editor:

nuke.selectedNode().hasError()

Result: Nuke crashes to desktop

Workaround
Unknown. 

Reproduced by support
This bug has been reproduced in:
Nuke11.1v3 - Windows 7 - Mac10.12 - CentOS6.9
Nuke11.1v1 - Windows 7 - Mac10.12 - CentOS6.9
Nuke11.0v4 - Windows 7 - Mac10.12 - CentOS6.9
Nuke11.0v1 - Windows 7 - Mac10.12 - CentOS6.9
Nuke10.5v7 - Windows 7 - Mac10.12 - CentOS6.9
Nuke10.5v1 - Windows 7 - Mac10.12 - CentOS6.9
Nuke10.0v6 - Windows 7
Nuke10.0v1 - Windows 7 - Mac10.12 - CentOS6.9
Nuke9.0v9 - Windows 7
Nuke9.0v1 - Windows 7 - Mac10.12 - CentOS6.9
Nuke8.0v7 - Windows 7 - Mac10.12 - CentOS6.9|
Nuke7.0v10 - Windows 7 - Mac10.12 - CentOS6.9

Earliest version tested
- This issue appears to be in all versions of the product

Expected behaviour
Nuke should not crash when querying specifically named nodes for errors/

Actual behaviour
Nuke crashes when calling node named 'window'

    We're sorry to hear that

    Please tell us why