Check incoming value before trying to convert to an array in oaeUtil.toArray
Create a test for OaeUtil.toArray()
Merge pull request #1007 from bp323/toArray

Check the incoming value before converting it to an Array in oaeUtil.toArray()