Empty input streams are not commonjs fix

Newer versions of browserify are not happy when the input pipe is empty. Update the CommonJS test to short circuit to not being CommonJS if the input stream is empty.