Fix issue #19 by checking if there is any presentedViewController and assigning it as topController.