Fix for null nonscalar array issue (Mongo)