tp-fs: fix a potential NULL dereferencing crash

https://bugs.freedesktop.org/show_bug.cgi?id=79006
ensure that values received from callback are not NULL

Make clang happier and is safer anyway.

https://bugs.freedesktop.org/show_bug.cgi?id=79006