Dialog Extension: make sure dialog method is only called if dialog option is true Fixes #6373 - <body> receives ui-overlay-a although page theme is different