Do not apply source unless value is set to nonempty string

Signed-off-by: Ben Agricola <bagricola@squiz.co.uk>