Made syntax for receive() more consistent across scripts and agents
Minor null-check fixes:
- Container null check in Agent send
- Null message in LogFormatter