Use get() to avoid KeyError on get_bootdev()

The method get() returns a value for the given key. If key is not
available then returns default value None. I think that was the
intention of the initial code.

Change-Id: I974258822d54f7ac09bc4197eb4ec249784012e7