Add a couple more setting data safety measures

Prevent null dereferencing if data is null, instead just make the
functions return and ignore the get/set requests.