Allow register_patterns! to work when no private networks are specified

Fixes an `if` statement to make an explicit check for emptiness.

Seems related to #19.