Eliminate duplicate present / dismiss messages when handling modal view controllers.