[graphspell] helpers: Map/Object conversion: return null if null given as parameter