We have observed restconf attempting to put null data into a path,
leading to an implicit NPE without any explanation. Add an explicit
guard to catch such attempts.
Change-Id: I2e2125b04782d4f1c050d0aeb72161158da28c9f Signed-off-by: Robert Varga <robert.varga@pantheon.tech>