= fixed possible NPE and incorrect doc for SBT keys

(cherry picked from commit 20e6662e8d6280b548725d75e6b207468261a9f2)