Fix a wrong check in previous patch

Authored by jgrulich on Dec 17 2018, 3:27 PM.