Do not render port template if device has no port

Change-Id: Iacefbba64ee0cc534c3129a1c4b28025294c6b08
Closes-Bug: #1321974
Merge "Do not render port template if device has no port"