fixed few PHP warnings

by adding some isset() checks

discovered while working on https://github.com/GigaOM/legacy-pro/issues/4125