Remove some PHP warnings

Removed two PHP warnings. The warning in class-helper.php broke json output, so we could not see the bundles on the file system. The warning in class-readwrite.php was just annoying.