To answer the question... YES this is legal.

As long as the pitcher doesn't step on the rubber without the baseball, he doesn't have to have the baseball in his glove. Basically the base runner is a big dummy for falling for an old baseball trick that rarely if ever works.