Fixed a bug that causes anvil.token to choke on an empty package.json file

Added a simple check to ensure that the file has content other then whitespace.