Fix bag searches failing due to data bag not existing.

Since adding additional data bags we need to catch exceptions and make
sure that we are safe aga inst user input.