Fix NPE when pasting an empty buffer

Right-click paste is grayed out when buffer is empty, but middle button
paste is still available
Merge pull request #2 from Plonk42/paste_npe

Fix NPE when pasting an empty buffer