Gets the value from inside an optional value, if it is present. If the value is blank, returns the second parameter instead.