Fixes small issue with using uninitialized value in conditional. [skip ci]