Fix web UI ports bug in vanilla plugin

Fixes bug: #1204076

Change-Id: Id5e184b75123e0ec3be098b376a51fc3b097a9df
Merge "Fix web UI ports bug in vanilla plugin"