Fix WB Ruby API Module using the wrong exception

Change-Id: I6ff71341fca3ace046f9aa7d1cc534ce2c115db7