Get rid of unneccessary if else statements in the GML format

This came up here: https://github.com/bartvde/ol3/commit/272a3762d61101b19f14a7dfbef93bb54c3e4c4c#commitcomment-5486873