4 0 stable head with status action stack level too deep

fixes https://github.com/rails/rails/issues/13905 
on 4-0-stable branch

all actionpack tests pass