Minor null checking

- Also added more debug logging to InputController