submodule: check for NULL return of get_submodule_ref_store()
If we can't find a ref store for a submodule then assume the latter
is not initialized (or was removed). Print a status line accordingly
instead of causing a segmentation fault by passing NULL as the first
parameter of refs_head_ref().
Reported-by: Jeremy Feusi <redacted> Reviewed-by: Stefan Beller <redacted> Initial-Test-By: Stefan Beller <redacted> Helped-by: Eric Sunshine <redacted> Signed-off-by: Rene Scharfe <redacted> Signed-off-by: Junio C Hamano <redacted>