Handle bad browsers (IE submits [null] in photos hash)

IE in some cases can submit "[null]" for the attachinary hash. This causes attachinary to blow up with an undefined method [] for NilClass error. This very simple pull request handles bad input by compacting the array to get rid of null elements.