Fix item race condition with errormessages

The item in admin menu function was overwriting the model item that was
trying to show error message for. Super complicated but thought I should
document.