crash fix when nil values would end up array route and crash on assert