UIViewControllerHierarchyInconsistency solved by defensive check

We keet receiving UIViewControllerHierarchyInconsistency exception on previous version when calling #show method.

We solve that by adding these lines. They are harmless and it would help others if you include them.

Thanks!