Fix undefined index
[mms] Correctly enforce file size attachment limits on the first attachment (Bug #12663).