Bug 1115692 - Fixing up a logical error in the existing code. r=jmaher