Do not try to invoke target if ribbon control context is null.

This commit fixes #50