Check if ApplicationPolicy is not null.
Merge pull request #5623 from alesj/jacc_check

Check if ApplicationPolicy is not null.