[ADDED] Check if master is read-only

Just to ensure we can run at all.
Merge branch 'master-read-only-check' into next