jsonrpc: fix Files.GetDirectory not returning artistid, albumid and genreid for smartplaylists

This fixes JSON-RPC's Files.GetDirectory not returning `artistid`, `albumid` or `genreid` when the retrieved directory is a smartplaylist. This already works fine for normal paths just not for smartplaylists.