[#312] Error message when adding empty primary location

@stellanl Could you code check?