ReaScript: Fixed BR_GetMouseCursorContext() and related functions
 - detection was broken in MIDI editor (changes introduced in REAPER v4.7 broke it (ruler height changed))