device-creator: Fix crash when creating mute controls for sinks and sources

Sink and source devices don't have the device->port pointer set, so
dereferencing that caused a segfault.

Change-Id: I85ee730a3e5805ce6b0acb671fcf26434ff0ff2b