Addressed several control flow and erroring issues

This patch addresses:
  - Cleaned up instances of break-less switching
  - Fixed integer underflows with mode setting
  - Removed stray semicolon preventing NULL check
steam-json: refactored for better control flow and readability