Add some guards in simplebridge

Signed-off-by: Tibor Vass <teabee89@gmail.com>