Resolved cache returning 'null' incorrectly due to not detecting whether cached item was a stub or not.