Fixed NPE in OMEXMLMetadataService

Was calling getValue() on the channelSamplesPerPixel. If that field
wasn't populated, a NPE would be thrown.

Now check for null before calling getValue().