Fixed a minor logic bug

Signed-off-by: Geoffrey McRae <gnif@xbmc.org>