Fixed focus being ignored. Added truthy evaluation for popup content node.

Fixes #560 
Fixes #562