Fixed potential undefined index in ArrayLoader.php

A source without a reference is invalid.
Merge pull request #1671 from thomas-gay/master

Fixed potential undefined index in ArrayLoader.php