NPE in bookmark grid when using mouse

When using a mouse and right clicking on an empty
element element in the bookmark grid an NPE ocurrs.

Patch fixes crash after click right button on the mouse
in bookmark screen, by adding null pointer check.

Change-Id: I07af747797411176e9fd9473eb2dbfe4404e58f5