Update rb.core.js

cross checking for null value.