avoid keyerror when get() returns a non-list