issue #15504: Fix application check to work correctly.