Bug fix for trying to set speed/pitch when media is null.

When a new track starts, it will attempt to set speed when media is still null, resulting in a null pointer exception.  This checks for the null pointer.