Fix EZP-20556: Creating a new class shows error in redirect