Don't pass null prefix to readline

It is assumed that the library that implements readline will handle the
case where the prompt is null. This might not necessarily be the case.
Only pass the prompt to readline if it isn't null, and pass it an empty
string if it is.

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