(bug 42997) _getRawValue implementation in commonsMedia widget

This is more like a temporary solution which implements checking for an empty string within
the commonsMedia widget. As soon as validators are implemented, the corresponding validator
should be used to validate the input.

Change-Id: I460cfc67b9806ae1471c128c076f027132b68cd0