Fix potential null pointer exception if using incorrect interface

Fixes a bug with a possible null pointer exception.
This simply adds a "continue" following a null pointer check to stop the pointer being used. It's only a problem if an unknown interface name is used, so it probably doesn't show up for most users.