nspath: When rel_path is NULL, don't crash

Verifying preconditions ftw.

Signed-off-by: Robin Sonefors <robin.sonefors@op5.com>