Fixes NaN checking
Merge branch 'develop' of github.com:CartoDB/cartodb20 into develop

* 'develop' of github.com:CartoDB/cartodb20:
  sort layers process fixed - fixes vizzuality/cartodb-management#2684