Modified if-statement to reflect what was originally meant

This resolves https://github.com/vispy/vispy/issues/533.