Only set non-nil Readline.completion_proc.

This fixes an ArgumentError when running with Ruby 1.8.7. (See https://github.com/bundler/bundler/pull/2764)