added few checks to FlxBitmapUtil.merge()