Fix for the problem that Ajax requests that end up in the queue are posted to the wrong form under certain conditions.
The problem has been described here: https://community.jboss.org/thread/242191