Fix for Palantir

"(null)" -> Anonymous
null -> 0