Only set non-nil Readline.completion_proc.

This fixes an ArgumentError when running with Ruby 1.8.7.
Merge pull request #389 from TimMoore/ruby-1.8.7-compat

Only set non-nil Readline.completion_proc.