metadata - ensure title is not blank for layer

rollback some of 6c8318eb - if the layer has no title, the
caps doc will contain none and this may cause problems