Fix markup of README.rst
Add safety check for an invalid note range to prevent crashing.