Check for null prefix in fallback prompt

The fallback prompt does not check if the prefix is NULL. G_print will
print an error if this happens, which looks bad. Only use the prefix if
it is non-null and print only an empty string if it's not.

Signed-off-by: Marcus Karlsson <mk@acc.umu.se>