Implement Chest for our custom containers. Fixed NPE with logging.

Added check for getViewers. Fixes #694