- Change from 'except Exception' to bare 'except' to catch Java
exceptions from Ghidra that don't inherit from Python Exception
- Use sys.exc_info() to safely extract error messages when str(e)
might fail on certain Java exception types
- Add null checks after getAddress() since it can return None
instead of throwing for invalid addresses
- Add last-resort response handling to prevent silent connection
drops when exception handling itself fails
These endpoints now return proper JSON error responses instead of
causing "Empty reply from server" errors.