Add some guards in simplebridge

Signed-off-by: Tibor Vass <teabee89@gmail.com>

Ping @erikh @icecrime @LK4D4