Fixed exception when launching the App Extension from an iPad.

This addresses issue #45 which was fixed by @blork in PR #59. In it addressed the fill Login scenario is addressed. I took the liberty to apply the fix for all four scenarios. :+1: 

@blork you *rock*!