Few path checks to avoid PZP crash

Jira Issue: WP-263