Add check to prevent showing an existing fragment

@peter-budo 
Apparently, if you try to show a fragment that has already been added
twice (as `DialogFragment.show(FragmentManager, String)` will try to add
it again), it throws an `IllegalStateException`. This prevents it from
happening.