Verify that the in_port from flow_mod's match is a valid OF port

Up to now there was no check and it was possible to install a flow mod
that has matches for non-existent ports.