A couple of small tweaks to prevent some PHP errors.

https://github.com/GigaOM/legacy-pro/issues/886