Prevent exception throwing in getFilename of MWImageNode

This doesn't happen in real life (as resource is always set) but
it allows us to contruct these nodes from the factory with no data.

Change-Id: Iea146f5dc128ad9d0f36a79b6fe67d622767d46c
Merge "Prevent exception throwing in getFilename of MWImageNode"