Try to pick a window and throw exception in it if the exception comes from node context.

When the exception comes from node context, we can not be sure from which
window the exception is thrown, so we just pick the first window and
throw the exception in it.