<% if profile.lat %>
  <%= block_title block.title %>
  <div class='the-localization-map'>
    <img src="https://maps.google.com/maps/api/staticmap?center=<%=profile.lat%>,<%=profile.lng%>&zoom=<%=block.zoom%>&size=190x250&maptype=<%=block.map_type%>&markers=<%=profile.lat%>,<%=profile.lng%>&sensor=false"/>
  </div>
</div>
<% else %>
  <i><%= _('This profile has no geographical position registered.') %></i>
<% end %>

<% if profile.lat %>
  <%= block_title block.title %>
  <div class='the-localization-map'>
    <img src="https://maps.google.com/maps/api/staticmap?center=<%=profile.lat%>,<%=profile.lng%>&zoom=<%=block.zoom%>&size=190x250&maptype=<%=block.map_type%>&markers=<%=profile.lat%>,<%=profile.lng%>&sensor=false"/>
  </div>
<% else %>
  <i><%= _('This profile has no geographical position registered.') %></i>
<% end %>

Remove extra div close tag
Remove extra div close tag
