prevent "null" as argument for findById in collections