Fix issue Felix-1163. When an array cannot be created correctly, a better message is thrown and logged.