Resolving PHP Warnings

Fixing php warnings when sub-accounts and tags are not specified