Fix js error when adding blank location. #51