only insert after ActionDispatch::DebugExceptions if it is defined (fixes #119)